<!--{include manage_header}-->
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
	    <li><a href="/manage/credit/index.php">积分管理</a></li>
	    <li><a href="/manage/credit/goods.php">商品兑换</a></li>
		<li style="float:right;  font-size:22px; ">
			<a href="javascript::" style="padding-right:30px;color:#3B95C8;">
				<!--{if $_SESSION['ali_token']}-->
				${mb_strimwidth($login_user['realname'],0,10)}
				<!--{else}-->
				${mb_strimwidth($login_user['username'],0,10)}
				<!--{/if}-->
			</a>
		</li>
    </ul>
</div>
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<!--<div class="dashboard" id="dashboard">
		<ul>${mcurrent_credit('goods')}</ul>
	</div>-->
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
				<div class="formtitle"><span>商品兑换</span></div>
                    <!--<h2></h2>-->
					<ul class="filter">
						<li><a href="/manage/credit/ajax.php?action=edit" class="ajaxlink">新建兑换商品</a></li>
						<!--<li><a href="/manage/credit/records.php">兑换记录</a></li>-->
					</ul>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="5" border="1" bordercolor="#89B4D6" style="width:99%" class="coupons-table">
					<tr>
						<th width="50">ID</th>
						<th width="400">名称</th>
						<th width="50">兑换积分</th>
						<th width="50">所属分类</th>
						<th width="40" nowrap>限兑</th>
						<th width="40" nowrap>数量</th>
						<th width="40" nowrap>排序</th>
						<th width="40" nowrap>显示</th>
						<th width="140">操作</th>
					</tr>
					<!--{loop $goods $index $one}-->
					<tr ${$index%2?'':'class="alt"'}>
						<td>{$one['id']}</td>
						<td>{$one['title']}</td>
						<td>{$one['score']}</td>
						<td><!--${
							$classify=Table::Fetch('category',$one['classify'],'id');
							}-->
							{$classify['name']}
						</td>
						<td>{$one['per_number']}</td>
						<td>{$one['consume']}/{$one['number']}</td>
						<td>{$one['sort_order']}</td>
						<td>{$one['display']}</td>
						<td class="op"><a href="/manage/credit/ajax.php?action=disable&id={$one['id']}" class="ajaxlink">${$one['enable']=='Y'?'禁用':'启用'}</a>｜<a href="/manage/credit/ajax.php?action=edit&id={$one['id']}" class="ajaxlink">编辑</a>｜<a href="/manage/credit/ajax.php?action=remove&id={$one['id']}" class="ajaxlink" ask="确定删除本商品？">删除</a></td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="9">{$pagestring}</td></tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include manage_footer}-->
